package com.jd.finance.oss.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 对象存储-原始文件-维护表
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="OssObjectsOriginal对象", description="对象存储-原始文件-维护表")
public class OssObjectsOriginal implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "内部自生成主键")
      @TableId(value = "object_id", type = IdType.AUTO)
    private Long objectId;

    @ApiModelProperty(value = "对象存储维护表id")
    private Long compressId;

    @ApiModelProperty(value = "对象上传唯一key")
    private String objectKey;

    @ApiModelProperty(value = "对象名称")
    private String objectName;

    @ApiModelProperty(value = "对象类型")
    private String objectType;

    @ApiModelProperty(value = "对象大小")
    private String objectSize;

    @ApiModelProperty(value = "上传用户id")
    private Long uploadPersonnelId;

    @ApiModelProperty(value = "上传用户姓名")
    private String uploadPersonnelName;

    @ApiModelProperty(value = "上传时间")
    private LocalDateTime uploadTime;

    @ApiModelProperty(value = "1存活, 0已删除")
    private Integer status;

    @ApiModelProperty(value = "删除用户id")
    private Long deletePersonnelId;

    @ApiModelProperty(value = "删除用户姓名")
    private String deletePersonnelName;

    @ApiModelProperty(value = "删除时间")
    private LocalDateTime deleteTime;


}
